package com.zhong.gang.applib.pop;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhong.gang.applib.R;

public class TypeAdapter extends BaseQuickAdapter<TypeBean, BaseViewHolder> {

    public TypeAdapter() {
        super(R.layout.item_type);
    }

    @Override
    protected void convert(BaseViewHolder helper, TypeBean item) {
        helper.setText(R.id.text,item.getTitle());
        helper.getView(R.id.line).setVisibility(helper.getLayoutPosition()+1 == getItemCount()? View.GONE:View.VISIBLE);
    }
}
